import Cookies from 'js-cookie'

/**
 * 通用
 */
export function getCookie(key) {
  return Cookies.get(key);
}
export function setCookie(key, value, options) {
  return Cookies.set(key, value, options);
}
export function removeCookie(key) {
  return Cookies.remove(key);
}
/**
 * 用户相关
 */
// 用户登录token
let USER_TOKEN = "Login-Token";
// 登录用token
export function getUserToken() {
  return Cookies.get(USER_TOKEN);
}

export function setUserToken(token) {
  return Cookies.set(USER_TOKEN, token);
}

export function removeUserToken() {
  return Cookies.remove(USER_TOKEN);
}